<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<html lang="zh">
<head>
    <title>支付</title>
</head>

<body>

<div>
    <h5 style="margin-top: 10px">订单尚未受理</h5>
</div>

<button id="refund_not_accept_submit" style="    display: block;
    height: 40px;
    line-height: 40px;
    width: 84%;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    background: #3f89ec;
    border: 0;
    margin-left: 8%;
    margin-top: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -o-transition: .3s;
    transition: .3s;">全额退款
</button>
<script>

    $('#refund_not_accept_submit').click(function () {



        //后台会自动逻辑判断订单的付款状态
        $.post("/order/pay/refund",{id: '${orderId}'},function () {
            Event.fanout('order.refund.ok', '${orderId}');
            mydialog.close();
        }).error(function (err) {

            console.log(err);

        });

    });

</script>
</body>
</html>